package com.jzr.medical.test.netty;


import com.jzr.netty.common.protocol.RegisterRequest;

public class LongConnectCall {
    public static void main(String[] args) throws Throwable {
        String host = "127.0.0.1";
        int port = 8888;

        for(int i=0;i<10;i++) {
            LongConnectClient client1 = new LongConnectClient(host, port);
            client1.run();
            RegisterRequest request = new RegisterRequest();
            request.setAppVersion(1.0F);
            request.setDeptCode("1402");
            request.setDeviceIp("192.168.1."+(100+i));
            request.setDeviceMac("abc");
            request.setDeviceNo("TEST"+(100+i));
            request.setDeviceType(1);
            request.setNurseName("护士"+(100+i));
            request.setRegisterBed(String.valueOf(14197+i));
            request.setNurseboardIp("192.168.1."+(101+i));
            client1.send(request);
            Thread.sleep(200);
        }

        System.in.read();


    }
}
